package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(desc = "矿场-结算榜单", tableName = "t_c_ck_kuang_log_battle_rank",autoSave = true,uploadCk = true,isCross = true)
public class LogKuangBattleRank extends ServerBaseLog{

    @FieldTypeAnnotation(desc = "周次id",isIndex = true)
    private int weekId;

    @FieldTypeAnnotation(desc = "分组id",isIndex = true)
    private int groupId;

    @FieldTypeAnnotation(desc = "用户id/阵营id")
    private long id;

    @FieldTypeAnnotation(desc = "榜单类型 1 个人榜  2 阵营榜")
    private int type;

    @FieldTypeAnnotation(desc = "排名")
    private int rank;

    @FieldTypeAnnotation(desc = "积分")
    private long score;

    @FieldTypeAnnotation(desc = "更新时间")
    private Date updateTime;

    public LogKuangBattleRank(int weekId, int groupId, long id, int type, int rank, long score, Date updateTime) {
        this.weekId = weekId;
        this.groupId = groupId;
        this.id = id;
        this.type = type;
        this.rank = rank;
        this.score = score;
        this.updateTime = updateTime;
    }

    public int getWeekId() {
        return weekId;
    }

    public void setWeekId(int weekId) {
        this.weekId = weekId;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public long getScore() {
        return score;
    }

    public void setScore(long score) {
        this.score = score;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public long getUserId() {
        return 0;
    }
}
